#include "yuvspec.h"



YUVSpec::YUVSpec(int width,int height,int fps,AVPixelFormat format):width(width),height(height),fps(fps),format(format){


}


YUVSpec::YUVSpec(const YUVSpec& yuvSpec):YUVSpec(yuvSpec.width,yuvSpec.height,yuvSpec.fps,yuvSpec.format){


}

int YUVSpec::imageSize() const{

    return av_image_get_buffer_size(format,width,height,1);
}

int YUVSpec::getFps() const{

    return fps;
}

int YUVSpec::getWidth() const{

    return width;
}

int YUVSpec::getHeight() const{

    return height;
}

AVPixelFormat YUVSpec::getFormat() const
{
    return format;
}
